﻿using Dapper_Core.Basic;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Dapper_Core.Table
{
    public class WorkflowNode : BaseModel
    {
        /// <summary>
        /// Guid主键，主键必须加[Key]特性，若想对名为Id的列赋值必须加[Required]特性
        /// </summary>
        [Key]
        [Required]
        public string WorkflowNodeId { get; set; }
        /// <summary>
        /// 对应Workflow表中的主键WorkflowId
        /// </summary>
        public string WorkflowId { get; set; }
        /// <summary>
        /// 对应Workflow表中的WorkflowCode
        /// </summary>
        public string WorkFlowCode { get; set; }
        /// <summary>
        /// 模板编码
        /// </summary>
        public string WorkflowNodeCode { get; set; }
        /// <summary>
        /// 节点名称
        /// </summary>
        public string WorkflowNodeName { get; set; }
        /// <summary>
        /// start;end;normal
        /// </summary>
        public string WorkflowNodeType { get; set; }
        /// <summary>
        /// 本节点的审批人类型
        /// </summary>
        public int? CheckManType { get; set; }
        /// <summary>
        /// 本节点的审批人
        /// </summary>
        public string CheckMan { get; set; }
        /// <summary>
        /// 角色编码，多个角色用英文逗号分隔
        /// </summary>
        public string RoleCode { get; set; }
        /// <summary>
        /// 审批角色描述
        /// </summary>
        public string RoleDesc { get; set; }
        /// <summary>
        /// 1可批量,0不可批量
        /// </summary>
        public int? Isbatch { get; set; }
    }
}